<template>
  <div class="tab-list-container">
    <div class="tab-nav-wrap">
      <ul class="tab-nav bid-flex">
        <li class="nav-item left-slot">
          {{ headerData.leftSlot }}
        </li>
        <li class="nav-item right-slot" v-if="headerData.rightSlot">
          <span class="more-news">更多</span>
        </li>
      </ul>
    </div>
    <div class="tab-content-wrap bid-flex">
      <div class="vr-exb-item">
        <div>
          <img
            class="vr-img"
            src="../assets/image/vr_exhibition_1.png"
            alt=""
            srcset=""
          />
        </div>
        <p class="company-name">中国航天科技集团</p>
      </div>
      <div class="vr-exb-item">
        <div>
          <img
            class="vr-img"
            src="../assets/image/vr_exhibition_2.png"
            alt=""
            srcset=""
          />
        </div>
        <p class="company-name">中国航天科技集团</p>
      </div>
      <div class="vr-exb-item">
        <div>
          <img
            class="vr-img"
            src="../assets/image/vr_exhibition_3.png"
            alt=""
            srcset=""
          />
        </div>
        <p class="company-name">中国航天科技集团</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "tab-list",
  props: {
    headerData: {
      type: Object,
      required: true
    }
  },
  data() {
    return {};
  },
  methods: {}
};
</script>
<style scoped>
.tab-nav-wrap {
  background-color: #f0f0f0;
}

.left-slot,
.right-slot,
.nav-item {
  height: 0.44rem;
  padding: 0 0.17rem;
  line-height: 0.44rem;
  font-size: 0.16rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item {
  color: #1571ba;
  text-align: center;
  border-top: 0.02rem solid #1571ba;
  border-bottom: 0.01rem solid #ddd;
  background-color: #f0f0f0;
  box-sizing: border-box;
}

.left-slot {
  color: #fff;
  font-size: 0.18rem;
  /* border-top: 0.01rem solid #1571ba; */
  border-bottom: 0.01rem solid #1571ba;
  background-color: #1571ba;
}

.right-slot {
  padding: 0;
  text-align: right;
}

.tab-nav .nav-item:last-child {
  flex: 2;
  border-right: 0.01rem solid #ddd;
}

.tab-nav .nav-item.active {
  padding-top: 0.02rem;
  border-left: 0.01rem solid #ddd;
  border-right: 0.01rem solid #ddd;
  border-bottom: none;
  background-color: #fff;
}

.nav-item .more-news {
  display: inline-block;
  width: 0.5rem;
  height: 0.41rem;
  color: #1571ba;
  font-size: 0.14rem;
  padding-right: 0.26rem;
  background-repeat: no-repeat;
  background-size: 0.14rem;
  background-position: 0.55rem 0.13rem;
  background-image: url("../assets/icon/nav_item_more.png");
}

.tab-content-wrap {
  padding-top: 0.15rem;
  overflow: hidden;
  border-left: 0.01rem solid #ddd;
  border-right: 0.01rem solid #ddd;
  border-bottom: 0.01rem solid #ddd;
}

.vr-exb-item {
  width: 3.87rem;
}

.tab-content-wrap .vr-exb-item:nth-child(2) {
  margin: 0 0.2rem;
}

.vr-img {
  width: 100%;
  object-fit: cover;
}

.company-name {
  height: 0.61rem;
  line-height: 0.61rem;
  text-align: center;
  font-size: 0.2rem;
  color: #333;
}
</style>
